﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SKYPE4COMLib;

namespace Skypeexec
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        public static string State = "";

        private void Form1_Load(object sender, EventArgs e)
        {
            Skype Sky = new Skype();
//            MessageBox.Show(State);
            switch (State)
            {
                case "O":
                    Sky.ChangeUserStatus(TUserStatus.cusOnline);
                    break;
                case "A":
                    Sky.ChangeUserStatus(TUserStatus.cusAway);
                    break;
                case "I":
                    Sky.ChangeUserStatus(TUserStatus.cusInvisible);
                    break;
                case "NA":
                    Sky.ChangeUserStatus(TUserStatus.cusDoNotDisturb);
                    break;
                case "F":
                    Sky.ChangeUserStatus(TUserStatus.cusOffline);
                    break;
            }
            Close();
        }
    }
}
